package com.example.kotlincoroutine.activity;

import android.os.Bundle;
import android.widget.Button;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;

import com.example.kotlincoroutine.R;
import com.yurenmatou.proxy.BindViewVincent;
import com.vincent.utils.CalculatorTool;

public class HHActivity extends AppCompatActivity {


   @BindViewVincent(R.id.tv_name1)
   Button tv_name1;

   @BindViewVincent(R.id.btn_name)
   Button btn_name;


   @Override
   protected void onCreate(@Nullable Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
//      VincentButterknife.bind(this);
      com.yurenmatou.utils.VincentButterknife.bind(this);
      try {
         tv_name1.setText(CalculatorTool.parseBigDecimal("((((1+2*2+2-1+3*(1E4+2))*(2.00+(1+(1E+4-1+3)*8+1E+10+3-2/1+2/(1+5)+1)*5-2*10/2+(1+2)))))").toPlainString());
      } catch (Exception e) {
      }
      btn_name.setText("32333223");
   }

   @Override
   public void onAttachFragment(@NonNull Fragment fragment) {
      super.onAttachFragment(fragment);
   }

   @Override
   public void onAttachFragment(android.app.Fragment fragment) {
      super.onAttachFragment(fragment);
   }
}
